package ua.yandex.shad.tempseries;

import java.lang.Exception;

class TemperatureSeriesException extends Exception{
    public TemperatureSeriesException(){
        super();
    }
    public TemperatureSeriesException(String message){
        super(message);
    }
}

class IllegalTemperatureValueException extends TemperatureSeriesException {
    int index;
    public IllegalTemperatureValueException(int index){
        super("Temperature lower than -273 in array[" + Integer.toString(index) +"]");
        this.index=index;
    }
}

class NotEnoughValuesToForecastException extends TemperatureSeriesException {
    int count;
    public NotEnoughValuesToForecastException(int count){
        super("Not enough values to forecast ( need at least 10 but have " + Integer.toString(count) + ")");
        this.count=count;
    }
}